import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Vant from "vant";
import "vant/lib/index.css";

// vue-baidu-map 定位
import BaiduMap from "vue-baidu-map";

Vue.use(BaiduMap, {
    // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
    ak: "dHmOYPFzA8DvyqX2hgMkHYG9Lcfpmm5m",
});

// 把socket挂载到vue上
// import VueSocketIOExt from "vue-socket.io-extended";
// import io from "socket.io-client";

// const socket = io("http://10.3.221.23:7001/");

// Vue.use(VueSocketIOExt, socket);

Vue.use(Vant);

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");